package lab8.task4;

public class T4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 7;
		array[5] = 3;
		array[6] = 3;
		array[7] = 9;
		array[8] = 3;
		array[9] = 7;
		
		int countOfThree = 0;
		int countOfSeven = 0;
		int countOfNine = 0;
		
		for (int i : array) {
			switch (i) {
			case 3:
				countOfThree++;
				break;
			case 7:
				countOfSeven++;
				break;
			case 9:
				countOfNine++;
				break;
			}
		}
		
		System.out.println("Number of 3: " + countOfThree);
		System.out.println("Number of 7: " + countOfSeven);
		System.out.println("Number of 9: " + countOfNine);
	}
}
